package com.api.shopapi.service.impl;

import com.api.shopapi.entity.NursingSchedulingNightItem;
import com.api.shopapi.mapper.NursingSchedulingNightItemMapper;
import com.api.shopapi.service.NursingSchedulingNightItemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("NursingSchedulingNightItemServiceImplOne")
public class NursingSchedulingNightItemServiceImpl implements NursingSchedulingNightItemService {

    @Autowired
    private NursingSchedulingNightItemMapper nursingSchedulingNightItemMapper;


    @Override
    public int insert(NursingSchedulingNightItem nurseSchedulingNightItem) {
        return nursingSchedulingNightItemMapper.insert(nurseSchedulingNightItem);
    }

    @Override
    public int updateByNurseSchedulingNightItemCode(NursingSchedulingNightItem nurseSchedulingNightItem) {
        return nursingSchedulingNightItemMapper.updateByNursingSchedulingNightItemCode(nurseSchedulingNightItem);
    }

    @Override
    public int deleteByNurseSchedulingNightItemCode(String nurseSchedulingNightItemCode) {
        return nursingSchedulingNightItemMapper.deleteByNursingSchedulingNightItemCode(nurseSchedulingNightItemCode);
    }

    @Override
    public NursingSchedulingNightItem getByNursingSchedulingNightItemCode(String nurseSchedulingNightItemCode) {
        return nursingSchedulingNightItemMapper.getByNursingSchedulingNightItemCode(nurseSchedulingNightItemCode);
    }

    @Override
    public List<NursingSchedulingNightItem> getListByNursingSchedulingNightCode(String nursingSchedulingNightCode) {
        return nursingSchedulingNightItemMapper.getListByNursingSchedulingNightCode(nursingSchedulingNightCode);
    }

    @Override
    public int deleteByNurseSchedulingNightCode(String nursingSchedulingNightCode) {
        return nursingSchedulingNightItemMapper.deleteByNurseSchedulingNightCode(nursingSchedulingNightCode);
    }

    @Override
    public NursingSchedulingNightItem getListByNursingSchedulingNightCodeAndNurseAideCode(String nursingSchedulingNightCode, String nurseAideCode) {
        return nursingSchedulingNightItemMapper.getListByNursingSchedulingNightCodeAndNurseAideCode(nursingSchedulingNightCode,nurseAideCode);
    }

    @Override
    public NursingSchedulingNightItem getListByNursingSchedulingNightCodeAndNurseCode(String nursingSchedulingNightCode, String nurseCode) {
        return nursingSchedulingNightItemMapper.getListByNursingSchedulingNightCodeAndNurseCode(nursingSchedulingNightCode,nurseCode);
    }
}
